package cn.sunlight.gulimall.product.feign;

import cn.sunlight.common.to.SkuReductionTo;
import cn.sunlight.common.to.SpuBoundTo;
import cn.sunlight.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
@Component
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping(value = "/coupon/skufullreduction/saveinfo",consumes = "application/json")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
